package com.mccken.designpattern.strategy.strategy_01;

/**
 * @program: mccken-collect
 * @description:
 * @author: mccken
 * @create: 2024-01-14 18:43
 **/
public class Client {

	public static void main(String[] args) {
		// 运行时制定具体的算法
		AbstractStrategy abstractStrategy = new ConcreteStrategyA();
		McckenStrategyContext mcckenStrategyContext = new McckenStrategyContext();
		mcckenStrategyContext.setAbstractStrategy(abstractStrategy);
		mcckenStrategyContext.algorithm();
	}
}
